/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package infoplaces2;

import java.awt.image.RenderedImage;
import java.awt.image.BufferedImage;

/**
 *
 * @author Andre Alvarado
 */
public class BiplanarPanoramicView extends PanoramicImage {

    
//    BiplanarPanoramicView(left: RenderedImage, rigth: RenderedImage)
//    BiplanarPanoramicView(source: PanoramicImage)
//    fetch(x: double, y: double, z: double): RGBColor
//    fetch(azimuth: double, zenith: double): RGBColor
            
    public BiplanarPanoramicView(RenderedImage left, RenderedImage right) {
        super(makeImageArray(left, right));
    }
    
    public BiplanarPanoramicView(PanoramicImage source) {
        super(makeImageArray(source));
    }
    
    private static RenderedImage[] makeImageArray(RenderedImage left, RenderedImage right) {
        RenderedImage[] result = {left, right};
        return result;
    }

    private static RenderedImage[] makeImageArray(PanoramicImage source) {
        BufferedImage left = null; //new BufferedImage(...);
        //TODO Calcular left a partir de source.
        
        BufferedImage right = null; //new BufferedImage(...);
        //TODO Calcular right a partir de source.

        return makeImageArray(left, right);
    }

    // os fetchs vem pelo polimorfismo?
}
